﻿/*
 * usart.h
 *
 * Created: 2013-12-23 12:49:03
 *  Author: Michał
 */ 


#ifndef USART_H_
#define USART_H_

// Includes -------------------------------------------------------------------------------------------
#include <avr/io.h>
#include <string.h>

// Defines -_------------------------------------------------------------------------------------------
#define BAUD 9600
#define USART_SPEED (F_CPU/16/BAUD-1)

// Functions ------------------------------------------------------------------------------------------
void USART_Init(void);
void USART_Send(uint8_t data);
void USART_Print(char *tab);
uint8_t USART_Receive();

#endif /* USART_H_ */